"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = AlertExample;

var _react = _interopRequireDefault(require("react"));

var _components = require("@tarojs/components");

var _index = _interopRequireDefault(require("../../index"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function AlertExample() {
  return /*#__PURE__*/_react.default.createElement(_components.View, {
    className: "page"
  }, /*#__PURE__*/_react.default.createElement(_components.View, {
    className: "header"
  }, "Alert \u63D0\u793A\u6761"), /*#__PURE__*/_react.default.createElement(_components.View, {
    className: "header"
  }, "1. \u57FA\u672C\u7528\u6CD5"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "success"
  }, "\u6210\u529F\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "warning"
  }, "\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "info"
  }, "\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "error"
  }, "\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_components.View, {
    className: "header"
  }, "2. \u4E0D\u5E26\u56FE\u6807"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "success",
    hideIcon: true
  }, "\u6210\u529F\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "warning",
    hideIcon: true
  }, "\u8B66\u544A\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "info",
    hideIcon: true
  }, "\u6D88\u606F\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "error",
    hideIcon: true
  }, "\u9519\u8BEF\u63D0\u793A\u7684\u6587\u6848"), /*#__PURE__*/_react.default.createElement(_components.View, {
    className: "header"
  }, "3. \u53EF\u5173\u95ED"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "success",
    closeable: true,
    onClose: function onClose() {
      console.log('close');
    }
  }, "\u8FD9\u4E2A\u662F\u53EF\u5173\u95ED\u7684\u63D0\u793A\u6761"), /*#__PURE__*/_react.default.createElement(_components.View, {
    className: "header"
  }, "4. \u81EA\u52A8\u5173\u95ED"), /*#__PURE__*/_react.default.createElement(_index.default, {
    type: "success",
    duration: 3000
  }, "\u6210\u529F\u63D0\u793A\u7684\u6587\u6848"));
}